export interface Option {
  label: string
  // name: string
  value: any
}
interface ValueType {}
type SurveyValueType = number | string | boolean | null | Array<number | string>
export interface SurveyItem {
  name: string
  label: string
  options?: Option[]
  initOptions?: () => Promise<Option[]>
  isMultipleChoice?: boolean
  value: SurveyValueType
  isInitialized?: boolean // 作用是让初始化前仍可在options中允许有初始化选项，不影响后面的初始化
  [key: string]: any
}
// 默认外部混入SurveyItem的类型
export interface MixinSurveyItem {
  name: string
  options?: Option[]
  value?: SurveyValueType
}

export interface Result {
  name: string
  value: any // 当是多选时是数组
}
